<style scoped>
#font {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--dark-color);
  user-select: none;
}
.wrapper {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  background-image: radial-gradient(#e9ecef 1px, transparent 1px);
  background-size: 20px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  box-shadow: none;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.3rem;
  background: linear-gradient(to right, #c3e9d4, #c3d5e9, #ccc2e7);
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 60%;
  position: relative;
  z-index: 2;
}

.image {
  width: 40%;
  height: 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.1));
}

.image::after {
  content: '404';
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-2rem);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slogan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 45%;
  position: relative;
}

.slogan::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0.3rem;
  height: 70%;
  background: linear-gradient(to bottom, #c3e9d4, #c3d5e9, #ccc2e7);
  border-radius: 0.5rem;
}

.title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 1rem;
  margin-left: 1.5rem;
  background: linear-gradient(to right, #333, #666);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation:
    fadeIn 0.8s ease-out,
    float 3s ease-in-out infinite 0.8s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.description {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2rem;
  margin-left: 1.5rem;
  color: #666;
  animation:
    fadeIn 1s ease-out 0.3s both,
    float 3s ease-in-out infinite 1s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.1);
  animation: floatIcon 5s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 20%;
  font-size: 2.5rem;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 50%;
  left: 60%;
  font-size: 1.8rem;
  animation-delay: 1s;
}

.floating-icon:nth-child(3) {
  top: 70%;
  left: 30%;
  font-size: 2.2rem;
  animation-delay: 2s;
}

@keyframes floatIcon {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(10px, -15px) rotate(10deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}
</style>
<template>
  <div class="wrapper">
    <div class="container">
      <div class="content">
        <div class="slogan">
          <div class="title" id="font">不好！</div>
          <div class="description" id="font">我们找不到该页面……</div>
        </div>
      </div>
      <div class="image">
        <img src="@/assets/notFoundImage.jpg" alt="404 Not Found" />
        <div class="floating-elements">
          <i class="ri-file-search-line floating-icon"></i>
          <i class="ri-search-line floating-icon"></i>
          <i class="ri-compass-3-line floating-icon"></i>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup></script>
